﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoginForm.ascx.cs" Inherits="LoginForm" %>
<asp:Panel ID="plogin" runat="server">
    <div class="loginContent"> 
        <%--用户名--%>
        <div class="login">
            <span>邮 箱 ：</span>
            <asp:TextBox CssClass="txtBox" ID="txtname" runat="server"></asp:TextBox><span style="color: #0000ff; text-decoration: underline"> </span>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtname" Display="Dynamic" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
        </div>
        <%--密码--%>
        <div class="login">
            <span>密 码 ：</span>
            <asp:TextBox CssClass="txtBox" ID="txtpwd" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtpwd" Display="Dynamic" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
        </div>
        <%--验证码--%>
        <div class="login">
            <span>验证码：</span>
            <asp:TextBox ID="txtcode" runat="server" Height="15px" Width="60px"></asp:TextBox>
            <asp:Image ID="Image1" runat="server" Height="21px" ImageUrl="~/ValidateCode.aspx" Width="61px" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtcode" Display="Dynamic" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
        </div>
        <div style="text-align: center;">
            <a href="Default.aspx" style="color: #339900; text-decoration: none; font-size: 12px">验证看不清，更换一张</a>
        </div>
        <%--用户类型--%>
        <div style="text-align: center;">
            <asp:RadioButton Checked="True" GroupName="login" ID="rbpt" runat="server" Text="普通会员" />
            <asp:RadioButton ID="rbgj" runat="server" GroupName="login" Text="高级会员" />
        </div>
        <%--登录、注册按钮--%>
        <div style="text-align: center; margin-top: 5px;">
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="images/mainpic/Button_Login.gif" OnClick="ImageButton1_Click" ValidationGroup="1" CssClass="btn" />
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="images/mainpic/Button_Reg.gif" ValidationGroup="0" PostBackUrl="~/PersonRegieter.aspx" />
        </div>
        <div style="float: right; margin-right: 15px;">
            <img src="images/mainpic/Icon1.gif" />
            <a href="perfindpwd.aspx" style="font-size: 13px; text-decoration: none;">找回密码</a>
        </div>
    </div>
</asp:Panel>

<asp:Panel ID="plcuss" runat="server" Visible="False">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT [pname], [psex], [page], [padd], [pschool], [pcid], [pimgs],[pemail] FROM [tb_person] WHERE ([pid] = @pid)">
        <SelectParameters>
            <asp:SessionParameter Name="pid" SessionField="person" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:FormView ID="FormView1" runat="server" DataSourceID="SqlDataSource1"
        Width="200px" HorizontalAlign="Center">
        <EditItemTemplate>
            pname:
            <asp:TextBox ID="pnameTextBox" runat="server" Text='<%# Bind("pname") %>' />
            <br />
            psex:
            <asp:TextBox ID="psexTextBox" runat="server" Text='<%# Bind("psex") %>' />
            <br />
            page:
            <asp:TextBox ID="pageTextBox" runat="server" Text='<%# Bind("page") %>' />
            <br />
            padd:
            <asp:TextBox ID="paddTextBox" runat="server" Text='<%# Bind("padd") %>' />
            <br />
            pschool:
            <asp:TextBox ID="pschoolTextBox" runat="server" Text='<%# Bind("pschool") %>' />
            <br />
            pcid:
            <asp:TextBox ID="pcidTextBox" runat="server" Text='<%# Bind("pcid") %>' />
            <br />
            pimgs:
            <asp:TextBox ID="pimgsTextBox" runat="server" Text='<%# Bind("pimgs") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
                CommandName="Update" Text="鏇存柊" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"
                CausesValidation="False" CommandName="Cancel" Text="鍙栨秷" />
        </EditItemTemplate>
        <InsertItemTemplate>
            pname:
            <asp:TextBox ID="pnameTextBox" runat="server" Text='<%# Bind("pname") %>' />
            <br />
            psex:
            <asp:TextBox ID="psexTextBox" runat="server" Text='<%# Bind("psex") %>' />
            <br />
            page:
            <asp:TextBox ID="pageTextBox" runat="server" Text='<%# Bind("page") %>' />
            <br />
            padd:
            <asp:TextBox ID="paddTextBox" runat="server" Text='<%# Bind("padd") %>' />
            <br />
            pschool:
            <asp:TextBox ID="pschoolTextBox" runat="server" Text='<%# Bind("pschool") %>' />
            <br />
            pcid:
            <asp:TextBox ID="pcidTextBox" runat="server" Text='<%# Bind("pcid") %>' />
            <br />
            pimgs:
            <asp:TextBox ID="pimgsTextBox" runat="server" Text='<%# Bind("pimgs") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
                CommandName="Insert" Text="鎻掑叆" />
            <asp:LinkButton ID="InsertCancelButton" runat="server"
                CausesValidation="False" CommandName="Cancel" Text="鍙栨秷" />
        </InsertItemTemplate>
        <ItemTemplate>
            <table class="tabLogin" style="width: 200px;">
                <tr>
                    <td style="text-align: right;">E-mail：</td>
                    <td style="text-align: left;">
                        <asp:Label ID="psexLabel" runat="server" Text='<%# Bind("pemail") %>' /></td>
                </tr>
                <tr>
                    <td style="width: 80px; text-align: right;">姓名：</td>
                    <td style="width: 110px; text-align: left;">
                        <asp:Label ID="pnameLabel" runat="server" Text='<%# Bind("pname") %>' /></td>
                </tr>
                <tr>
                    <td style="text-align: right;">学校：</td>
                    <td style="text-align: left;">
                        <asp:Label ID="pageLabel" runat="server" Text='<%# Bind("pschool") %>' /></td>
                </tr>
                <tr>
                    <td></td>
                    <td style="text-align: right">
                        <a href="Resume.aspx" class="moreRight">
                            <span>简历详情</span>
                        </a>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
</asp:Panel>
<asp:Label ID="Label5" runat="server"></asp:Label>

